package deno1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-25
 * Time: 21:55
 */
// 实现类：狗实现所有父接口方法
public class Dog implements Subinterface {
    @Override
    public void fly() {
        System.out.println("狗不会飞但会跳跃");
    }

    @Override
    public void swim() {
        System.out.println("狗游泳");
    }

    @Override
    public void walk() {
        System.out.println("狗跳着游泳哈哈");
    }
}
